<%@ taglib prefix="c"      uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"    uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
  String localeImg = "";
  String locale = request.getLocale().toString();
  if ("zh".equals(locale) || "zh_CN".equals(locale)) {
    localeImg = "zh/";
  } else if ("zh_HK".equals(locale) || "zh_TW".equals(locale)) {
    localeImg = "zh/TW/";
  } /* else {
    if ("".equals(locale) || "en".equals(locale) || "en_US".equals(locale)) {
      localeImg = "";
    }
  } */
%>
<c:set var="localeImg" value="<%=localeImg%>" />
<fmt:requestEncoding value="UTF-8" />
<fmt:setLocale value="<%=request.getLocale().toString()%>" />
<fmt:setBundle basename="messages" />    
<HTML><HEAD><TITLE><fmt:message key="title"/></TITLE>
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
</HEAD>

<BODY bgColor=white>
<TABLE background="images/bkg-topbar.gif" border=0 cellSpacing=0 cellPadding=5 width="100%">
  <TBODY>
  <TR>
    <TD><A href="shop/index.do"><IMG border=0

      src="images/<c:out value='${localeImg}' />logo-topbar.gif"></A> </TD>
    <TD align=right><A href="shop/viewCart.do"><IMG border=0

      name=img_cart src="images/cart.gif"></A>
      <IMG border=0 src="images/separator.gif">

      <A href="shop/signonForm.do" >
      <IMG border=0 name=img_signin src="images/<c:out value='${localeImg}' />sign-in.gif"></A>
      <IMG border=0
      src="images/separator.gif"> <A
      href="help.html"
      ><IMG border=0
      name=img_help src="images/help.gif"></A>
  </TD>    <TD align=left valign=bottom>
      <FORM action="shop/searchProducts.do">
      <INPUT name=keyword size=14> <INPUT border=0
      src="images/<c:out value='${localeImg}' />search.gif"
      type=image> </FORM>
      </TD>
</TR>
</TBODY></TABLE>
<TABLE border=0 cellSpacing=0 width="100%">
  <TBODY>
  <TR>
    <TD vAlign=top width=100%>
      <p>&nbsp;</p>
      <p align="center"><b><fmt:message key="greeting"/></b></p>
      <p align="center"><fmt:message key="original" /></p>
      <p align="center">
      	<i>
      		This application demonstrates the use of Spring for the middle tier,
      		including declarative transaction management applied to POJO
      		business objects. This application can easily be configured to use
      		JTA or JDBC for transaction management, so it allows declarative
      		transaction management in a web container without JTA.
      		<br><br>There are alternative Spring and Struts MVC layers built on
      		a shared Spring middle tier.
      	</i>
      </p>
      <p align="center"><a href="shop/index.do"><fmt:message key="enter.store" /></a></p>
      </TD>
  </TR>
  </TBODY>
</TABLE>

<p>&nbsp;</p>

<table align="center">
  <tr>
	  <td>
			<a href="http://www.springframework.org">
				<img border="0" align="center" src="images/poweredBySpring.gif" alt="<fmt:message key='power.by.spring' />" title="<fmt:message key='power.by.spring' />" />
			</a>
		</td>
		<td>
			<a href="http://www.ibatis.com">
				<img border="0" align="center" src="images/poweredby.gif" alt="<fmt:message key='power.by.ibatis' />" title="<fmt:message key='power.by.ibatis' />" />
			</a>
		</td>
	</tr>
</table>

</BODY>

</HTML>
